﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using McCloudCore;

namespace WCFRole
{
    [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)]
    public class Service : IService
    {
        public string Run(double n, string codein, string codeout, double npt)
        {
            return McControl.split(n, codein, codeout, npt);                                  
        }

        public string Result(string key)
        {
            return McControl.get(key);
        }

        public string Check(string key)
        {
            string s = McControl.check(key);
            return s;
        }                
    }
}
